<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  User: Ivan wei
  --%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>课程查询系统</title>
    <style>
        table{
            text-align: center;
        }
        tr{
            height: 40px;
        }
        input{
            text-align: center;
            width: 100%;
            height: 40px;
            border: 0px;
            outline:0
        }
        .sub:hover{
            background-color: aqua;
        }
    </style>
</head>
<body>

<h1 style="text-align: center">课程系统</h1>
<hr>
<div>
    <%@ include file="/common.jsp" %>
</div>

<div style="text-align: center">
    <H2>更新课程信息</H2>
    <div style="width: 100% ;height: 45px;border: 1px;display: flex;align-items: center;justify-content: space-evenly;">
        <a href="/Administrator/courses.do"> 课程显示</a>
        <a href="/Administrator/courses/addCourse.do"> 课程添加</a>
    </div>

    <br><br><br><br>
    <div style="display: flex;justify-content: center;">

        <table  style="min-width: 760px;background-color: rgb(235,242,241);height: 45px" border="1">
            <form method="post" action="/Administrator/courses/update/modifyNow.do">
                <tr>
                    <td>课程编号：</td><td> <input type="text" name="id" value="${id}" required="required" oninput="value=value.replace(/[^\d]/g,'')"></td>
                    <td>课程名称：</td><td> <input type="text" name="name" value="${name}" required="required"></td>
                    <td> <input class="sub" type="submit" value="更新" ></td>
                </tr>
            </form>
        </table>
        <br>
    </div>
</div>
</body>
</html>
